﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebWise.Models
{
    /// <summary>
    /// ALL SUBSEQUENT PAGE MODELS MUST INHERIT THIS MODEL.
    /// This is the model that the navbar uses. 
    /// If there is a variable that will be common to all pages, put it here.
    /// </summary>
    public class LayoutModel
    {
        public int UserID { get; set; }
        public string Username { get; set; }
        public List<Link> MyLinks { get; set; }

    }

    public class Link
    {
        public string Name { get; set; }
        public Uri URL { get; set; }

        public Link(string name, string URL)
        {
            this.Name = name;
            this.URL = new Uri(URL);
        }

    }
}